package com.smedi.ismedi.authoritymanagement.core.domain.repository;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.AccountBasic;

public interface AccountBasicRepository {
    AccountBasic selectByUserId(Long userId);

    AccountBasic selectByPersonId(Long personId);

    AccountBasic doInsert(AccountBasic data);

    AccountBasic doUpdate(AccountBasic data);

    AccountBasic selectByUserKeyAndPersonId(String userKey, Long personId);

    AccountBasic selectByMobileOrUserName(String callAccount);

    void doDelete(Long userId);
}
